package com.compass.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "service-order",fallback = CallServiceHystric.class,qualifier = "callService")
public interface CallService {
    @RequestMapping("/hi")
    String sayHi(@RequestParam("name") String name);

    @RequestMapping("/sell")
    String sell(@RequestParam("itemName") String itemName,@RequestParam("num") int num);

    @RequestMapping("/buy")
    String buy(@RequestParam("itemName") String itemName,@RequestParam("num") int num);
}
